<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<!-- 数据类型之间的转换
			1.string
			2.number
			3.boolean
		 -->
		
		
		<script type="text/javascript">
			
			// 将其它数据类型准换成string类型  number  boolean
		
			var  number = 10;
			number = true;
			console.log(typeof number);
			console.log("number:"+number);
			
			console.log("--------------String(number)-----------------");
			//函数
			number = String(number)
			console.log(typeof number);
			console.log("number:"+number);
			
			// console.log("--------------字符串拼接-----------------");
			// number = number+''
			// console.log(typeof number);
			// console.log("number:"+number);
			
			// console.log("---------------toString()----------------");
			// number = number.toString()
			// console.log(typeof number);
			// console.log("number:"+number);
			
			
			
			
			
		</script>
		
	</body>
</html>
